namespace SolutionFactory.UI
{
    public class TemplateInput
    {
        public string Description { get; set; }
        public string Name { get; set; }

        public string Category { get; set; }

        public string SubCategory { get; set; }

        public string OutputDirectory { get; set; }

        public string RunOnCompletion { get; set; }

        public bool IncludeParentDirectory { get; set; }

        public bool IsValid()
        {
            return Name.Length > 0 && Description.Length > 0 && Category.Length > 0 && SubCategory.Length > 0 &&
                   OutputDirectory.Length > 0;
        }

        public string GetErrorMessage()
        {
            return "All fields are required";
        }
    }
}